<%@page import="org.springframework.security.core.context.SecurityContextHolder"%>
<%@page import="org.apache.commons.lang.StringUtils"%>
<%@page import="org.apache.commons.lang.time.DateFormatUtils"%>
<%@page import="org.springframework.util.CollectionUtils"%>
<%@page import="java.util.Collection"%>
<%@ include file="../common/common_include.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	AreaForm form = (AreaForm)request.getAttribute("command");
%>

<div>
	<form id="AreaAddForm" target="_coreIframe" method="post" action="<%=request.getContextPath()%>/area/doAdd" enctype="multipart/form-data">
		<div class="breadcrumb">
			<div class="bcIcon"></div>
			<ul class="bcNav">
				<li>新增区域</li>
			</ul>
		</div>
		<table class="formTable">
			<tr>
				<td class="tdTitle">区域名称：</td>
				<td>
					<input class="inputText xs" type="text"  value="" name="fldsitenames">
					<span class="errorTipWrap" id="errorTip_fldsitenames"></span>
				</td>
			</tr>
			<tr>
				<td class="tdTitle">全拼拼音编码：</td>
				<td><input class="inputText xs" type="text"  value="" name="fldpys">
				</td>
			</tr>
			<tr>
				<td class="tdTitle">营运方式：</td>
				<td>
					<select name="fldruntypes">
						<option value="直营" >直营</option>
						<option value="加盟" >加盟</option>
					</select>
				</td>
			</tr>
			<tr>
				<td class="tdTitle">所属抬头：</td>
				<td>
					<select id="areaNameList" class="easyui-combobox" name="areaId" style="width:200px;">
					</select>
					<span class="item-tip">请使用空格或退格键搜索</span>
					<span class="errorTipWrap" id="errorTip_areaId"></span>
				</td>
			</tr>
			
			<tr>
				<td class="tdTitle">所属网点编号：</td>
				<td><input class="inputText inputText-gray xs" type="text" value="" name="siteId" readonly="readonly">
				</td>
			</tr>
			
			<tr>
				<td class="tdTitle">所属网点名称：</td>
				<td><input class="inputText inputText-gray xs" type="text" value="" name="siteName" readonly="readonly">
				</td>
			</tr>

			<tr>
				<td class="tdTitle">服务项目：</td>
				<td class="" colspan="2">
					<div class="checkbox-wrap">
						<label>
							<input type="checkbox" value="1" name="flddaofuflagd" class="checkbox"
							>
							<span>可到付</span>
						</label>
						<label>
							<input type="checkbox" value="1" name="flddaiqianflagd" class="checkbox"
							>
							<span>可代签回单</span>
						</label>
						<label>
							<input type="checkbox" value="1" name="flddaishouflagd" class="checkbox"
							>
							<span>可代收款</span>
						</label>
						<label>
							<input type="checkbox" value="1" name="fldjiriflagd" class="checkbox"
							>
							<span>可作即日件</span>
						</label>
					</div>
				</td>
			</tr>
			
			<tr>
				<td class="tdTitle">负责人：</td>
				<td>
					<input class="inputText xs" type="text" value="" name="fldowners">
					<span class="errorTipWrap" id="errorTip_fldowners"></span>
				</td>
			</tr>
			<tr>
				<td class="tdTitle">手机：</td>
				<td>
					<input class="inputText xs" type="text" value="" name="fldmobiles">
					<span class="errorTipWrap" id="errorTip_fldmobiles"></span>
				</td>
			</tr>
			<tr>
				<td class="tdTitle">传真：</td>
				<td><input class="inputText xs" type="text" value="" name="fldfaxs">
				</td>
			</tr>
			<tr>
				<td class="tdTitle">详细地址：</td>
				<td>
					<input class="inputText l" type="text" value="" name="fldaddresss">
					<span class="errorTipWrap" id="errorTip_fldaddresss"></span>
				</td>
			</tr>
			<tr>
				<td class="tdTitle">排序：</td>
				<td>
					<input class="inputText xxxs" type="text" value="" name="fldsortd">
					<span class="errorTipWrap" id="errorTip_fldsortd"></span>
					<label>
						<input type="checkbox" value="1" name="fldhided" class="checkbox"
						>
						<span>隐藏</span>
					</label>
				</td>
			</tr>
			<tr>
				<td class="tdTitle">客服电话：</td>
				<td>
					<textarea class="textArea"  name="fldtels"></textarea>
				</td>
			</tr>
			<tr>
				<td class="tdTitle">派送区域：</td>
				<td>
					<textarea class="textArea"  name="fldregions"></textarea>
				</td>
			</tr>
			<tr>
				<td class="tdTitle">加工作日派送：</td>
				<td>
					<textarea class="textArea"  name="fldadddayregions"></textarea>
				</td>
			</tr>	
		
			<tr>
				<td class="tdTitle">不派送区域：</td>
				<td>
					<textarea class="textArea"  name="fldoutregions"></textarea>
				</td>
			</tr>

			<tr>
				<td class="tdTitle"></td>
				<td>
					<div>
						<input class="input-btn-microsoft" type="submit" value="提交">
						<a class="a-btn-microsoft" href="javascript:XF.Area.listArea()">取消</a>
					</div>
				</td>
			</tr>	
		</table>
	</form>
	<iframe id="_coreIframe" name="_coreIframe" style="display: none;"></iframe>
</div>
<script type="text/javascript">
	$("input[name=fldsitenames]").focus();
	XF.Area.init();
</script>



